 <!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>使用1.jpg，实现当单击1时，计算器结果区域显示1.</title>
	</head>
	<body>
		<input id="num" /><br />
		<img src="img/1.jpg" onclick="p1()" width="200"/> 
		
		<script>
			var p1=function(){
				num.value="1";
			};
		</script>
	</body>
</html>
 